package com.seniorgradefive.product.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.seniorgradefive.common.core.annotation.Excel;
import com.seniorgradefive.common.core.web.domain.BaseEntity;

/**
 * 商品库存录入记录对象 mall_product_stock_log
 *
 * @author seniorgradefive
 * @date 2024-05-14
 */
public class MallProductStockLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 商品 */
    @Excel(name = "商品")
    private Long productId;

    /** 商品SKU */
    @Excel(name = "商品SKU")
    private Long productRuleCententId;

    /** 录入库存数量 */
    @Excel(name = "录入库存数量")
    private Long stockNum;

    /** 乐观锁 */
    @Excel(name = "乐观锁")
    private Long revision;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setProductId(Long productId)
    {
        this.productId = productId;
    }

    public Long getProductId()
    {
        return productId;
    }
    public void setProductRuleCententId(Long productRuleCententId)
    {
        this.productRuleCententId = productRuleCententId;
    }

    public Long getProductRuleCententId()
    {
        return productRuleCententId;
    }
    public void setStockNum(Long stockNum)
    {
        this.stockNum = stockNum;
    }

    public Long getStockNum()
    {
        return stockNum;
    }
    public void setRevision(Long revision)
    {
        this.revision = revision;
    }

    public Long getRevision()
    {
        return revision;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productId", getProductId())
            .append("productRuleCententId", getProductRuleCententId())
            .append("stockNum", getStockNum())
            .append("revision", getRevision())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
